package com.hd.controller.commons;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hd.controller.base.BaseController;
import com.hd.entity.sys.User;
import com.hd.service.sys.UserService;
@Controller
@RequestMapping("/api")
public class ApiController extends BaseController{
	@Autowired
	private UserService userService;
	@RequestMapping(value = "/getUser")
	@ResponseBody
	public User getUser(@RequestParam(value="userId")String userId) {
		return userService.selectById(userId);
	}


}
